package com.cisystem.system.domain;

import com.cisystem.common.annotation.Excel;
import com.cisystem.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 邮件模版对象 sys_mail_template
 *
 * @author ruoyi
 * @date 2023-10-24
 */
public class SysMailTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String name;

    /** 模板编码 */
    @Excel(name = "模板编码")
    private String code;

    /** 发送的邮箱账号编号 */
    @Excel(name = "发送的邮箱账号编号")
    private Long accountId;

    /** 发送人名称 */
    @Excel(name = "发送人名称")
    private String nickname;

    /** 模板标题 */
    @Excel(name = "模板标题")
    private String title;

    /** 模板内容 */
    @Excel(name = "模板内容")
    private String content;

    /** 参数数组 */
    @Excel(name = "参数数组")
    private String mailParams;

    /** 开启状态 */
    @Excel(name = "开启状态")
    private Long status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setAccountId(Long accountId)
    {
        this.accountId = accountId;
    }

    public Long getAccountId()
    {
        return accountId;
    }
    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }

    public String getNickname()
    {
        return nickname;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setMailParams(String mailParams)
    {
        this.mailParams = mailParams;
    }

    public String getMailParams()
    {
        return mailParams;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("code", getCode())
                .append("accountId", getAccountId())
                .append("nickname", getNickname())
                .append("title", getTitle())
                .append("content", getContent())
                .append("mailParams", getMailParams())
                .append("status", getStatus())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
